/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame.game.monsters;

import cardgame.game.*;
import cardgame.game.events.*;

/**
 *
 * @author Carl
 */
public class LittleRed extends MonsterCard{

    public LittleRed(){
        description = new Description("Little Red", "No, I'm not Annie...");
        manaTypes = new Mana[]{Mana.RED};
        summonCost = new Cost(new ManaAmount(Mana.RED, 2), 0, false);
        attackDamage = 1;
        setLifepoints(2);
        setSpells(new Spell[]{new Spell(){{
                description = new Description("Return Mana");
                cost = new Cost(new ManaAmount(), 0, true);
                spellParameterFormat = new SpellParameterFormat(){{
                    add("Choose one of your manas to return.", SpellParameterFormat_Entry.Type.MANA, SpellParameterFormat_Entry.Owner.ALLIED);
                    add("Choose the enemy mana to return.", SpellParameterFormat_Entry.Type.MANA, SpellParameterFormat_Entry.Owner.ENEMY);
                }};
            }

            @Override
            public void cast(Game game, SpellParameter[] parameters){
                ManaProvider ownerManaProvider = getParameter_Mana(parameters[0]);
                ManaProvider enemyManaProvider1 = getParameter_Mana(parameters[1]);
                game.triggerEvent(new ReturnManaToHandEvent(ownerManaProvider));
                game.triggerEvent(new ReturnManaToHandEvent(enemyManaProvider1));
            }
        }});
    }
}
